package com.ldc.wandroid.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.ldc.common.common.CommonRecyclerView;
import com.ldc.common.common.CommonRecyclerViewHolder;
import com.ldc.wandroid.R;
import com.ldc.wandroid.model.PersonalRankModel;

public class PersoanlRankAdapter extends CommonRecyclerView<PersonalRankModel.DatasBean> {
    public PersoanlRankAdapter() {
        super(R.layout.layout_item_personal_rank_item);
    }


    @Override
    protected void convert2Data(@NonNull CommonRecyclerViewHolder holder, PersonalRankModel.DatasBean source, int position) {

        holder.setText(R.id.tv_name, String.format("%s", source.getUsername()));
        holder.setTextColorRes(R.id.tv_name, R.color.color_222222);
        holder.setText(R.id.tv_info, String.format("%s", source.getCoinCount()));
    }
}
